package io.github.talelin.latticy.dto.receving;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;

/**
 * @authoer:wulongbo
 * @createDate:2022/7/19
 * @description:
 */
@Data
public class ReceivingSkuDTO {

    /**
     * 箱子子项id
     */
    @Positive
    @NotNull(message = "{packages-items.id.not-empty}")
    private Integer packageItemId;

    /**
     * 箱子编号
     */
    private String packageNo;
    /**
     * 产品sku
     */
    @NotEmpty(message = "{product.sku.not-blank}")
    private String sku;

    /**
     * 产品sku名称
     */
    @NotEmpty(message = "{product.name.not-blank}")
    private String skuName;

    /**
     * 该sku本批次接收多少件
     */
    private Integer receiveNum;

    /**
     * 单次接收的sku标品总数
     */
    @Positive
    @NotNull(message = "{packages.specimen.not-empty}")
    private Integer specimen;

    /**
     * 单次接收的sku破损总数
     */
    @PositiveOrZero
    @NotNull(message = "{packages.damaged.not-empty}")
    private Integer damaged;

}
